\usetheme{Xiaoshan}
\addtobeamertemplate{institute}{\raggedleft}{}
\usefonttheme{serif}
\setCJKmainfont[ItalicFont={KaiTi}, Language=Chinese Simplified]{Noto Serif CJK SC}
\setmainfont{Libertinus Serif}
\setCJKmonofont{Sarasa Mono T SC}
\setmonofont{Sarasa Mono T SC}
\usepackage{amsmath,amssymb,amsfonts,textgreek}
\usepackage{metalogo,mflogo}
\usepackage{qrcode}
\usepackage{animate,media9}
\usepackage{fontawesome5}
\usepackage{tcolorbox,tabularx,multirow}
\usepackage{pgfplots}
\tcbuselibrary{skins,listings}
\usepackage[os=win]{menukeys}
\renewmenumacro{\directory}[/]{hyphenatepathswithfolder}
\usepackage[safe,tone]{tipa}
\usepackage[normalem]{ulem}
\usepackage{zhlipsum}
\usepackage{shapepar}
\usepackage{mahjong}
\ifnum\shellescape=1
\usepackage{minted}
\newminted{latex}{breaklines}
\else
\usepackage{listings}
\lstset{
  language={[LaTeX]TeX},
  breaklines,
  basicstyle=\ttfamily,
  tabsize=2,
  columns=fullflexible,
  lineskip=0pt,
  aboveskip=0pt,
  belowskip=0pt,
  commentstyle=\color{olive}\itshape,
  keywordstyle = {[1]\color{teal}},
  keywordstyle = {[2]\color{red}},
  keywordstyle = {[3]\color{violet}},
  keywordstyle = {[4]\color{blue}},
}
\lstnewenvironment{latexcode}{}{}
\fi
\DeclareRobustCommand*\cmd[1]{\texttt{\char`\\#1}}
\def\crcmd{\cmd{\char`\\}}
\makeatletter
\DeclareRobustCommand*\marg{\@ifstar\@marg\@margmeta}
\DeclareRobustCommand*\oarg{\@ifstar\@oarg\@oargmeta}
\DeclareRobustCommand*\ooarg{\@ifstar\@ooarg\@ooargmeta}
\DeclareRobustCommand*\Arg[1]{\@meta{#1}}
\def\@oarg#1{\textcolor{gray}{\texttt{[#1]}}}
\def\@ooarg#1{\texttt{[#1]}}
\def\@oargmeta#1{\@oarg{\@meta{#1}}}
\def\@ooargmeta#1{\@ooarg{\@meta{#1}}}
\def\@marg#1{\texttt{\{#1\}}}
\def\@margmeta#1{\@marg{\@meta{#1}}}
\def\@meta#1{$\m@th\langle$\textnormal{\textit{#1}}$\m@th\rangle$}
\makeatother
\tcbset{
  cmddescript/.style={
		colback=绀青!20,
		fontupper=\footnotesize,
    arc=2mm,
    rounded corners=southeast,
    lifted shadow={1mm}{-2mm}{3mm}{0.1mm}{black!50!white}
	},
  screen/.style={%
    colback=black!75!white,
    colframe=yellow!75!black,
    fontlower=\tiny\ttfamily,
    fontupper=\tiny\ttfamily,
    top=0mm,bottom=0mm,boxsep=0mm,
    listing engine=listings,
    listing only,
    listing options={breaklines},
  },
  cmdshell/.style={screen,
		colupper=white,
		listing options={language=command.com,breaklines,breakautoindent=false,numbers=none},
	},
  errecho/.style={screen,colupper=pink},
  cmdecho/.style={screen,colupper=yellow}
}
\newtcolorbox{lcmdline}{cmddescript}
\newtcblisting{commandshell}[1][C:\textbackslash]{cmdshell,every listing line={\textcolor{green}{#1> }}}
\newtcblisting{commandecho}{cmdecho}
\newtcblisting{errorecho}{errecho}

\newcommand{\fname}[1]{\scalebox{0.8}{\faFile*[regular]}~\texttt{#1}}